package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dto.WmNewsDto;
import com.heima.model.wemedia.dto.WmNewsPageReqDto;
import com.heima.model.wemedia.dto.WmNewsUpAndDownDto;
import com.heima.model.wemedia.pojo.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult<List<WmNews>> findAll(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto);

    ResponseResult upOrDown(WmNewsUpAndDownDto dto);
}
